package com.rds.common.api.material.domain;

import com.rds.common.annotation.Excel;
import com.rds.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 【请填写功能名称】对象 rda_parts_rel
 * 
 * @author ruoyi
 * @date 2023-11-30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RdaPartsRel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;

    /** 关系名称 */
    @Excel(name = "关系名称")
    private String relName;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long fromid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer fromtype;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long toid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer totype;

    /** 标识 */
    @Excel(name = "标识")
    private String findnumber;

    /** 层级 */
    @Excel(name = "层级")
    private Long level;

    /** 上级id */
    @Excel(name = "上级id")
    private Long parentId;

    private MaterialBill materialBill;

    public RdaPartsRel(RdaPartsRel rdaPartsRel) {
        super();
    }


    public MaterialBill getMaterialBill() {
        return materialBill;
    }

    public void setMaterialBill(MaterialBill materialBill) {
        this.materialBill = materialBill;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setRelName(String relName) 
    {
        this.relName = relName;
    }

    public String getRelName() 
    {
        return relName;
    }
    public void setFromid(Long fromid) 
    {
        this.fromid = fromid;
    }

    public Long getFromid() 
    {
        return fromid;
    }
    public void setFromtype(Integer fromtype)
    {
        this.fromtype = fromtype;
    }

    public Integer getFromtype()
    {
        return fromtype;
    }
    public void setToid(Long toid) 
    {
        this.toid = toid;
    }

    public Long getToid() 
    {
        return toid;
    }
    public void setTotype(Integer totype)
    {
        this.totype = totype;
    }

    public Integer getTotype()
    {
        return totype;
    }
    public void setFindnumber(String findnumber)
    {
        this.findnumber = findnumber;
    }

    public String getFindnumber()
    {
        return findnumber;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    @Override
    public String toString() {
        return "RdaPartsRel{" +
                "id=" + id +
                ", quantity=" + quantity +
                ", relName='" + relName + '\'' +
                ", fromid=" + fromid +
                ", fromtype=" + fromtype +
                ", toid=" + toid +
                ", totype=" + totype +
                ", findnumber=" + findnumber +
                ", level=" + level +
                ", parentId=" + parentId +
                ", materialBill=" + materialBill +
                '}';
    }
}
